package com.example.pages;


import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class UserPage extends InternalPage {

	@FindBy(className = "error")
	public WebElement errorMessage;
	
	@FindBy(id = "email")
	public WebElement emailField;
	
	@FindBy(name = "username")
	public WebElement userNameField;
	
	@FindBy(name = "submit")
	public WebElement saveButton;
	
	@FindBy(name = "password")
	public WebElement passwordField;
	
	@FindBy(id = "password2")
	public WebElement passwordAgain;
	
	public boolean thereIsErrorMessage() {
		return errorMessage.isDisplayed();
}
}